import Vue from 'vue'
import Router from 'vue-router'
import VueResource from 'vue-resource'
import HelloWorld from "@/components/HelloWorld";
//引入相关代码包
Vue.use(Router);
Vue.use(VueResource);
//定义路由
export default new Router({
    routes: [
        {
            path: '/',
            name: 'Hello',
            component: HelloWorld
        },
    ]
})
